import request from '@/plugin/axios'
import util from '@/libs/util.js'
export function AccountLogin (params) {
  const data = params || {}
  data.password = util.md5(params.password)
  return request({
    url: 'user/login',
    method: 'post',
    data
  })
}
export function Register (params) {
  const data = params || {}
  data.password = util.md5(params.password)
  return request({
    url: 'user/register',
    method: 'post',
    data
  })
}
